extends VBoxContainer

class_name ChatBox

var messages = Array()


func add_message(text):
	var m = ChatMessage.new(text)
	add_child(m)
	messages.append(m)

func clear():
	for m in messages:
		m.erase()
	messages.clear()
